﻿$.MGJ.SearchCode = [];
(function () {    
    var _this = $.MGJ.SearchCode;
    $.extend($.MGJ.SearchCode, {
        //分页    
        Ajax_SearchCodeList: function (pageIndex) {
            var Csearch =$("#Csearch").val();
            if (Csearch != "") {
                $.L.ajaxHandle({
                    url: ACTION_URL("SearchCodeList", "CodeManage"),
                    data: {
                        pageIndex: pageIndex,
                        pageSize: 10,
                        Csearch: Csearch,
                    },
                    success: function (response) {
                        $("#SearchCodetable").L_bindingDataList(response);
                        if (response[0] == undefined) {
                            $.L.msgError("该码不存在或不属于当前机构！")
                        }
                    }
                });
            } else {
                if (arguments[1] != "Initing") {
                    $.L.msgError("查询码不能为空");
                }
                $("#SearchCodetable").L_bindingDataList([]);

            }
        }
    });
})(jQuery);
